<?php /* Smarty version 2.6.26, created on 2014-02-07 08:05:35
         compiled from overview_graph.tpl.php */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
<?php echo '
*{margin:0; padding:0}
'; ?>

</style>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php if ($this->_tpl_vars['data'] != ""): ?>
    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script type="text/javascript">
	<?php echo '
	
      google.load("visualization", "1", {packages:["corechart"]});
      google.setOnLoadCallback(drawChart);
      function drawChart() {
        var data = google.visualization.arrayToDataTable([
            '; ?>
<?php echo $this->_tpl_vars['data']; ?>
<?php echo '
        ]);

      var options = {
		  
		  '; ?>

		  
		  <?php if ($this->_tpl_vars['m'] == 'current'): ?>
          title: '(USD)-Earnings For Current Month Of <?php echo $this->_tpl_vars['month']; ?>
 <?php echo $this->_tpl_vars['year']; ?>
',
		  <?php else: ?>
          title: '(USD)-Earnings For Last Month of <?php echo $this->_tpl_vars['month']; ?>
 <?php echo $this->_tpl_vars['year']; ?>
',		  
		  <?php endif; ?>
		  <?php echo '
		  pointSize: 3,
		  backgroundColor: "#f6f6f6"
        };


        var chart = new google.visualization.LineChart(document.getElementById(\'lineChart\'));
        chart.draw(data, options);
      }
	  '; ?>

    </script>
<?php endif; ?>    
</head>

<body>
<div style="width:648px; height:263px; margin:10px auto; border:1px solid #e0e0e0" id="lineChart" ><br /><br /><br /><br /><br /><br /><center>Earnings Not Available</center></div>
</body>
</html>